package com.wtwd.wtwddevice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.wtwddevice.model.entity.SetSos;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetSosMapper extends BaseMapper<SetSos> {
    int editSetSos(@Param("setSos") SetSos setSos);

    SetSos getSetSosByDeviceId(@Param("deviceId") Long deviceId);

    int insertSetSos(@Param("setSos") SetSos setSos);

    int editState(@Param("deviceId") Long deviceId, @Param("number") String number, @Param("state") int state);
}
